<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>flask-uploads文件上传</title>
</head>
<body>
{#enctype="multipart/form-data"#}
{% if img_url %}
    <img src="{{ img_url }}" alt="美女">
{% endif %}
<form method="post" enctype="multipart/form-data">
    <input type="file" name="photo">
    <input type="submit" value="上传">
</form>
</body>
</html>